package com.usian.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;

/**
 * ClassName: AdChannelService
 * Author:   WGG
 * Date:    2022-11-2022/11/9-16:42
 * Version: 1.0
 * Description:
 */
public interface AdChannelService extends IService<AdChannel> {
    /**
     * 根据名称查询分页的接口
     * @param channelDto
     * @return
     */
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 新增频道
     * @param adChannel
     * @return
     */
    public ResponseResult saveChannel(AdChannel adChannel);

    /**
     * 修改频道
     * @param adChannel
     * @return
     */
    public ResponseResult updateChannel(AdChannel adChannel);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public ResponseResult deleteById(Integer id);
}
